void bpsk_phase_switch(){
bpsk_phase_state++;
PORTC |= _BV(7);
if(bpsk_phase_state&1){
AD9834_SendWord(0xC000);
AD9834_SendWord(0xC00B);
AD9834_SendWord(0xC017);
AD9834_SendWord(0xC022);
AD9834_SendWord(0xC02D);
AD9834_SendWord(0xC039);
AD9834_SendWord(0xC044);
AD9834_SendWord(0xC050);
AD9834_SendWord(0xC05B);
AD9834_SendWord(0xC066);
AD9834_SendWord(0xC072);
AD9834_SendWord(0xC07D);
AD9834_SendWord(0xC088);
AD9834_SendWord(0xC094);
AD9834_SendWord(0xC09F);
AD9834_SendWord(0xC0AB);
AD9834_SendWord(0xC0B6);
AD9834_SendWord(0xC0C1);
AD9834_SendWord(0xC0CD);
AD9834_SendWord(0xC0D8);
AD9834_SendWord(0xC0E3);
AD9834_SendWord(0xC0EF);
AD9834_SendWord(0xC0FA);
AD9834_SendWord(0xC106);
AD9834_SendWord(0xC111);
AD9834_SendWord(0xC11C);
AD9834_SendWord(0xC128);
AD9834_SendWord(0xC133);
AD9834_SendWord(0xC13E);
AD9834_SendWord(0xC14A);
AD9834_SendWord(0xC155);
AD9834_SendWord(0xC161);
AD9834_SendWord(0xC16C);
AD9834_SendWord(0xC177);
AD9834_SendWord(0xC183);
AD9834_SendWord(0xC18E);
AD9834_SendWord(0xC199);
AD9834_SendWord(0xC1A5);
AD9834_SendWord(0xC1B0);
AD9834_SendWord(0xC1BC);
AD9834_SendWord(0xC1C7);
AD9834_SendWord(0xC1D2);
AD9834_SendWord(0xC1DE);
AD9834_SendWord(0xC1E9);
AD9834_SendWord(0xC1F4);
AD9834_SendWord(0xC200);
AD9834_SendWord(0xC20B);
AD9834_SendWord(0xC216);
AD9834_SendWord(0xC222);
AD9834_SendWord(0xC22D);
AD9834_SendWord(0xC239);
AD9834_SendWord(0xC244);
AD9834_SendWord(0xC24F);
AD9834_SendWord(0xC25B);
AD9834_SendWord(0xC266);
AD9834_SendWord(0xC271);
AD9834_SendWord(0xC27D);
AD9834_SendWord(0xC288);
AD9834_SendWord(0xC294);
AD9834_SendWord(0xC29F);
AD9834_SendWord(0xC2AA);
AD9834_SendWord(0xC2B6);
AD9834_SendWord(0xC2C1);
AD9834_SendWord(0xC2CC);
AD9834_SendWord(0xC2D8);
AD9834_SendWord(0xC2E3);
AD9834_SendWord(0xC2EF);
AD9834_SendWord(0xC2FA);
AD9834_SendWord(0xC305);
AD9834_SendWord(0xC311);
AD9834_SendWord(0xC31C);
AD9834_SendWord(0xC327);
AD9834_SendWord(0xC333);
AD9834_SendWord(0xC33E);
AD9834_SendWord(0xC34A);
AD9834_SendWord(0xC355);
AD9834_SendWord(0xC360);
AD9834_SendWord(0xC36C);
AD9834_SendWord(0xC377);
AD9834_SendWord(0xC382);
AD9834_SendWord(0xC38E);
AD9834_SendWord(0xC399);
AD9834_SendWord(0xC3A5);
AD9834_SendWord(0xC3B0);
AD9834_SendWord(0xC3BB);
AD9834_SendWord(0xC3C7);
AD9834_SendWord(0xC3D2);
AD9834_SendWord(0xC3DD);
AD9834_SendWord(0xC3E9);
AD9834_SendWord(0xC3F4);
AD9834_SendWord(0xC400);
AD9834_SendWord(0xC40B);
AD9834_SendWord(0xC416);
AD9834_SendWord(0xC422);
AD9834_SendWord(0xC42D);
AD9834_SendWord(0xC438);
AD9834_SendWord(0xC444);
AD9834_SendWord(0xC44F);
AD9834_SendWord(0xC45A);
AD9834_SendWord(0xC466);
AD9834_SendWord(0xC471);
AD9834_SendWord(0xC47D);
AD9834_SendWord(0xC488);
AD9834_SendWord(0xC493);
AD9834_SendWord(0xC49F);
AD9834_SendWord(0xC4AA);
AD9834_SendWord(0xC4B5);
AD9834_SendWord(0xC4C1);
AD9834_SendWord(0xC4CC);
AD9834_SendWord(0xC4D8);
AD9834_SendWord(0xC4E3);
AD9834_SendWord(0xC4EE);
AD9834_SendWord(0xC4FA);
AD9834_SendWord(0xC505);
AD9834_SendWord(0xC510);
AD9834_SendWord(0xC51C);
AD9834_SendWord(0xC527);
AD9834_SendWord(0xC533);
AD9834_SendWord(0xC53E);
AD9834_SendWord(0xC549);
AD9834_SendWord(0xC555);
AD9834_SendWord(0xC560);
AD9834_SendWord(0xC56B);
AD9834_SendWord(0xC577);
AD9834_SendWord(0xC582);
AD9834_SendWord(0xC58E);
AD9834_SendWord(0xC599);
AD9834_SendWord(0xC5A4);
AD9834_SendWord(0xC5B0);
AD9834_SendWord(0xC5BB);
AD9834_SendWord(0xC5C6);
AD9834_SendWord(0xC5D2);
AD9834_SendWord(0xC5DD);
AD9834_SendWord(0xC5E9);
AD9834_SendWord(0xC5F4);
AD9834_SendWord(0xC5FF);
AD9834_SendWord(0xC60B);
AD9834_SendWord(0xC616);
AD9834_SendWord(0xC621);
AD9834_SendWord(0xC62D);
AD9834_SendWord(0xC638);
AD9834_SendWord(0xC643);
AD9834_SendWord(0xC64F);
AD9834_SendWord(0xC65A);
AD9834_SendWord(0xC666);
AD9834_SendWord(0xC671);
AD9834_SendWord(0xC67C);
AD9834_SendWord(0xC688);
AD9834_SendWord(0xC693);
AD9834_SendWord(0xC69E);
AD9834_SendWord(0xC6AA);
AD9834_SendWord(0xC6B5);
AD9834_SendWord(0xC6C1);
AD9834_SendWord(0xC6CC);
AD9834_SendWord(0xC6D7);
AD9834_SendWord(0xC6E3);
AD9834_SendWord(0xC6EE);
AD9834_SendWord(0xC6F9);
AD9834_SendWord(0xC705);
AD9834_SendWord(0xC710);
AD9834_SendWord(0xC71C);
AD9834_SendWord(0xC727);
AD9834_SendWord(0xC732);
AD9834_SendWord(0xC73E);
AD9834_SendWord(0xC749);
AD9834_SendWord(0xC754);
AD9834_SendWord(0xC760);
AD9834_SendWord(0xC76B);
AD9834_SendWord(0xC777);
AD9834_SendWord(0xC782);
AD9834_SendWord(0xC78D);
AD9834_SendWord(0xC799);
AD9834_SendWord(0xC7A4);
AD9834_SendWord(0xC7AF);
AD9834_SendWord(0xC7BB);
AD9834_SendWord(0xC7C6);
AD9834_SendWord(0xC7D2);
AD9834_SendWord(0xC7DD);
AD9834_SendWord(0xC7E8);
AD9834_SendWord(0xC7F4);
AD9834_SendWord(0xC7FF);
}else{
AD9834_SendWord(0xC7FF);
AD9834_SendWord(0xC7F4);
AD9834_SendWord(0xC7E8);
AD9834_SendWord(0xC7DD);
AD9834_SendWord(0xC7D2);
AD9834_SendWord(0xC7C6);
AD9834_SendWord(0xC7BB);
AD9834_SendWord(0xC7AF);
AD9834_SendWord(0xC7A4);
AD9834_SendWord(0xC799);
AD9834_SendWord(0xC78D);
AD9834_SendWord(0xC782);
AD9834_SendWord(0xC777);
AD9834_SendWord(0xC76B);
AD9834_SendWord(0xC760);
AD9834_SendWord(0xC754);
AD9834_SendWord(0xC749);
AD9834_SendWord(0xC73E);
AD9834_SendWord(0xC732);
AD9834_SendWord(0xC727);
AD9834_SendWord(0xC71C);
AD9834_SendWord(0xC710);
AD9834_SendWord(0xC705);
AD9834_SendWord(0xC6F9);
AD9834_SendWord(0xC6EE);
AD9834_SendWord(0xC6E3);
AD9834_SendWord(0xC6D7);
AD9834_SendWord(0xC6CC);
AD9834_SendWord(0xC6C1);
AD9834_SendWord(0xC6B5);
AD9834_SendWord(0xC6AA);
AD9834_SendWord(0xC69E);
AD9834_SendWord(0xC693);
AD9834_SendWord(0xC688);
AD9834_SendWord(0xC67C);
AD9834_SendWord(0xC671);
AD9834_SendWord(0xC666);
AD9834_SendWord(0xC65A);
AD9834_SendWord(0xC64F);
AD9834_SendWord(0xC643);
AD9834_SendWord(0xC638);
AD9834_SendWord(0xC62D);
AD9834_SendWord(0xC621);
AD9834_SendWord(0xC616);
AD9834_SendWord(0xC60B);
AD9834_SendWord(0xC5FF);
AD9834_SendWord(0xC5F4);
AD9834_SendWord(0xC5E9);
AD9834_SendWord(0xC5DD);
AD9834_SendWord(0xC5D2);
AD9834_SendWord(0xC5C6);
AD9834_SendWord(0xC5BB);
AD9834_SendWord(0xC5B0);
AD9834_SendWord(0xC5A4);
AD9834_SendWord(0xC599);
AD9834_SendWord(0xC58E);
AD9834_SendWord(0xC582);
AD9834_SendWord(0xC577);
AD9834_SendWord(0xC56B);
AD9834_SendWord(0xC560);
AD9834_SendWord(0xC555);
AD9834_SendWord(0xC549);
AD9834_SendWord(0xC53E);
AD9834_SendWord(0xC533);
AD9834_SendWord(0xC527);
AD9834_SendWord(0xC51C);
AD9834_SendWord(0xC510);
AD9834_SendWord(0xC505);
AD9834_SendWord(0xC4FA);
AD9834_SendWord(0xC4EE);
AD9834_SendWord(0xC4E3);
AD9834_SendWord(0xC4D8);
AD9834_SendWord(0xC4CC);
AD9834_SendWord(0xC4C1);
AD9834_SendWord(0xC4B5);
AD9834_SendWord(0xC4AA);
AD9834_SendWord(0xC49F);
AD9834_SendWord(0xC493);
AD9834_SendWord(0xC488);
AD9834_SendWord(0xC47D);
AD9834_SendWord(0xC471);
AD9834_SendWord(0xC466);
AD9834_SendWord(0xC45A);
AD9834_SendWord(0xC44F);
AD9834_SendWord(0xC444);
AD9834_SendWord(0xC438);
AD9834_SendWord(0xC42D);
AD9834_SendWord(0xC422);
AD9834_SendWord(0xC416);
AD9834_SendWord(0xC40B);
AD9834_SendWord(0xC400);
AD9834_SendWord(0xC3F4);
AD9834_SendWord(0xC3E9);
AD9834_SendWord(0xC3DD);
AD9834_SendWord(0xC3D2);
AD9834_SendWord(0xC3C7);
AD9834_SendWord(0xC3BB);
AD9834_SendWord(0xC3B0);
AD9834_SendWord(0xC3A5);
AD9834_SendWord(0xC399);
AD9834_SendWord(0xC38E);
AD9834_SendWord(0xC382);
AD9834_SendWord(0xC377);
AD9834_SendWord(0xC36C);
AD9834_SendWord(0xC360);
AD9834_SendWord(0xC355);
AD9834_SendWord(0xC34A);
AD9834_SendWord(0xC33E);
AD9834_SendWord(0xC333);
AD9834_SendWord(0xC327);
AD9834_SendWord(0xC31C);
AD9834_SendWord(0xC311);
AD9834_SendWord(0xC305);
AD9834_SendWord(0xC2FA);
AD9834_SendWord(0xC2EF);
AD9834_SendWord(0xC2E3);
AD9834_SendWord(0xC2D8);
AD9834_SendWord(0xC2CC);
AD9834_SendWord(0xC2C1);
AD9834_SendWord(0xC2B6);
AD9834_SendWord(0xC2AA);
AD9834_SendWord(0xC29F);
AD9834_SendWord(0xC294);
AD9834_SendWord(0xC288);
AD9834_SendWord(0xC27D);
AD9834_SendWord(0xC271);
AD9834_SendWord(0xC266);
AD9834_SendWord(0xC25B);
AD9834_SendWord(0xC24F);
AD9834_SendWord(0xC244);
AD9834_SendWord(0xC239);
AD9834_SendWord(0xC22D);
AD9834_SendWord(0xC222);
AD9834_SendWord(0xC216);
AD9834_SendWord(0xC20B);
AD9834_SendWord(0xC200);
AD9834_SendWord(0xC1F4);
AD9834_SendWord(0xC1E9);
AD9834_SendWord(0xC1DE);
AD9834_SendWord(0xC1D2);
AD9834_SendWord(0xC1C7);
AD9834_SendWord(0xC1BC);
AD9834_SendWord(0xC1B0);
AD9834_SendWord(0xC1A5);
AD9834_SendWord(0xC199);
AD9834_SendWord(0xC18E);
AD9834_SendWord(0xC183);
AD9834_SendWord(0xC177);
AD9834_SendWord(0xC16C);
AD9834_SendWord(0xC161);
AD9834_SendWord(0xC155);
AD9834_SendWord(0xC14A);
AD9834_SendWord(0xC13E);
AD9834_SendWord(0xC133);
AD9834_SendWord(0xC128);
AD9834_SendWord(0xC11C);
AD9834_SendWord(0xC111);
AD9834_SendWord(0xC106);
AD9834_SendWord(0xC0FA);
AD9834_SendWord(0xC0EF);
AD9834_SendWord(0xC0E3);
AD9834_SendWord(0xC0D8);
AD9834_SendWord(0xC0CD);
AD9834_SendWord(0xC0C1);
AD9834_SendWord(0xC0B6);
AD9834_SendWord(0xC0AB);
AD9834_SendWord(0xC09F);
AD9834_SendWord(0xC094);
AD9834_SendWord(0xC088);
AD9834_SendWord(0xC07D);
AD9834_SendWord(0xC072);
AD9834_SendWord(0xC066);
AD9834_SendWord(0xC05B);
AD9834_SendWord(0xC050);
AD9834_SendWord(0xC044);
AD9834_SendWord(0xC039);
AD9834_SendWord(0xC02D);
AD9834_SendWord(0xC022);
AD9834_SendWord(0xC017);
AD9834_SendWord(0xC00B);
AD9834_SendWord(0xC000);
}
PORTC &= ~_BV(7);
}
